﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Web.PageUI.Page_DownLoad
{
    public class List:BaseList
    {
        public List()
        {
            this.Load += new EventHandler(List_Load);
        }

        private void List_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// 根据Id获得改栏目的父栏目集合
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public dynamic GetChannelByParentId(int top, string orderby, int Id)
        {
            return new Evan.DataBase.DbOperat("Channel").GetList_1(top, "ParentId=@0 and States=1", orderby, Id);
        }

        /// <summary>
        /// 根据ClassId获得下载中心的前几条数据
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public dynamic GetDownloadByClassId(int top, string orderby, int Id)
        {
            return new Evan.DataBase.DbOperat("DownLoad").GetList_1(top, "ClassId=@0 and States=1", orderby, Id);
        }
    }
}
